<% content_for(:head) do -%>

<% end %>


<div id="main">
  <div class="cl">&nbsp;</div>

  <!-- Content -->
  <div id="content">

    <%= form_tag do %>

      <!-- Box -->
      <div class="box">
        <!-- Box Head -->
        <div class="box-head">
          <h2><%= @title %></h2>
        </div>
        <!-- End Box Head -->

        <div class="table">
          <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
              <tr>
                <th>站点</th>
                <th></th>
              </tr>
              <tr>
                <td>
                  <label>站点名称 <span>(必填)</span></label>
                </td>
                <td>
                  <%= text_field_tag "options[site_name]", "My Blog", :class => "field", :size => 45 %>
                </td>
              </tr>
              <tr>
                <td>
                  <label>site_url <span>(必填)</span></label>
                </td>
                <td>
                  <%= text_field_tag "options[site_url]", "http://", :class => "field", :size => 45 %>
                </td>
              </tr>
            </tbody>

            <tbody>
              <tr>
                <th>文章</th>
                <th></th>
              </tr>
              <tr>
                <td>
                  <label>每页文章数</label>
                </td>
                <td>
                  <%= text_field_tag "options[articles_per_page]", "5", :class => "field", :size => 5 %>
                </td>
              </tr>
              <tr>
                <td>
                  <label>RSS输出</label>
                </td>
                <td>
                  <%= select_tag "options[rss_use_excerpt]", options_for_select([true,false], true), :class => "field" %>
                </td>
              </tr>
              <tr>
                <td>
                  <label>RSS输出语言</label>
                </td>
                <td>
                  <%= select_tag "options[articles_per_page]", options_for_select(["en","zh-cn"], "zh-cn"), :class => "field" %>
                </td>
              </tr>
            </tbody>


            <tbody>
              <tr>
                <th>评论</th>
                <th></th>
              </tr>
              <tr>
                <td>
                  <label>允许评论</label>
                </td>
                <td>
                  <%= select_tag "options[comment_status]", options_for_select(["open","close"], "open"), :class => "field" %>
                </td>
              </tr>
              <tr>
                <td>
                  <label>排序规则</label>
                </td>
                <td>
                  <%= select_tag "options[comment_order]", options_for_select([["时间倒序","asc"],["时间顺序","desc"]], "desc"), :class => "field" %>
                </td>
              </tr>
              <tr>
                <td>
                  <label>评论通知</label>
                </td>
                <td>
                  <%= select_tag "options[comments_notify]", options_for_select([true,false], true), :class => "field" %>
                </td>
              </tr>
              <tr>
                <td>
                  <label>每页评论数</label>
                </td>
                <td>
                  <%= text_field_tag "options[comments_per_page]", "30", :class => "field", :size => 5 %>
                </td>
              </tr>
            </tbody>

          </table>
        </div>

        <!-- Form Buttons -->
        <div class="buttons">
          <input type="button" class="button alignleft" id="summary-button" value="恢复默认值" />
          <%= submit_tag '提交保存', :disable_with => "正在提交...", :class=>"button" %>
        </div>
        <!-- End Form Buttons -->

      </div>
      <!-- End Box -->

    <% end %>

  </div>
  <!-- End Content -->

  <!-- Sidebar -->
  <div id="sidebar">

    <!-- Box -->
    <div class="box">

      <!-- Box Head -->
      <div class="box-head">
        <h2>选项</h2>
      </div>
      <!-- End Box Head-->

      <div class="box-content">

      </div>
    </div>
    <!-- End Box -->
  </div>
  <!-- End Sidebar -->

  <div class="cl">&nbsp;</div>
</div>